﻿@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_StandardLayout.cshtml";
}

<p style="margin-top:0"><button class="backToList">Back to List</button><br /></p>

@{Html.RenderPartial("Templates/QuestionTemplates");}
@{Html.RenderAction("EditSurvey", new { id = ViewBag.SurveyId });}

<p style="margin-bottom:0"><button class="backToList">Back to List</button></p>

<script type="text/javascript">
    $(function () {
        $('.backToList')
            .button({ icons: { primary: 'ui-icon-arrowreturnthick-1-w'} })
            .css('font-size', '0.8em').css('font-weight', 'normal')
            .click(function () { window.location = '@Url.Action("MySurveys", "Home")'; });
    });
</script>